package com.becca.cake.model.goods;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品广告位实体
 * @copyright  尊星(上海)信息科技有限公司
 * @author hejinguo
 * @date 2016年4月11日 下午3:54:08
 */
public class GoodsAdvertModel implements Serializable {
    /**  */
    private static final long serialVersionUID   = 668513972162527348L;
    /**状态(1:正常)*/
    public static final int   ADV_STATUS_ENABLE  = 1;

    /**广告类型(0:商品首页  )*/
    public static final int   ADV_TYPE_PAGEGOODS = 0;
    /**广告类型(1:全部商品页  )*/
    public static final int   ADV_TYPE_ALLGOODS  = 1;

    private Integer           id;
    /**广告标题*/
    private String            advTitle;
    /**广告类型(0:商品首页  1:全部商品)*/
    private Byte              advType;
    /**广告图片url*/
    private String            advPicPath;
    /**数据来源类型(0:商品ID 1:链接地址)*/
    private Byte              advSourceType;
    /**来源(advSourceType为0时保存商品ID,为1时是链接地址)*/
    private String            advSource;
    /**开始时间*/
    private Date              startDate;
    /**结束时间*/
    private Date              endDate;
    /**状态(0:禁用 1:正常 -1:删除)*/
    private Byte              advStatus;
    /**排序*/
    private Integer           advOrder;
    /**创建时间*/
    private Date              createdDate;
    /**创建人*/
    private String            createdName;
    /**修改时间*/
    private Date              updatedDate;
    /**修改人*/
    private String            updatedName;
    /**应用类型(0:微信 1:web)*/
    private Byte			  applicationType;
    
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAdvTitle() {
        return advTitle;
    }

    public void setAdvTitle(String advTitle) {
        this.advTitle = advTitle;
    }

    public Byte getAdvType() {
        return advType;
    }

    public void setAdvType(Byte advType) {
        this.advType = advType;
    }

    public String getAdvPicPath() {
        return advPicPath;
    }

    public void setAdvPicPath(String advPicPath) {
        this.advPicPath = advPicPath;
    }

    public String getAdvSource() {
        return advSource;
    }

    public void setAdvSource(String advSource) {
        this.advSource = advSource;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Byte getAdvStatus() {
        return advStatus;
    }

    public void setAdvStatus(Byte advStatus) {
        this.advStatus = advStatus;
    }

    public Integer getAdvOrder() {
        return advOrder;
    }

    public void setAdvOrder(Integer advOrder) {
        this.advOrder = advOrder;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getCreatedName() {
        return createdName;
    }

    public void setCreatedName(String createdName) {
        this.createdName = createdName;
    }

    public Date getUpdatedDate() {
        return updatedDate;
    }

    public void setUpdatedDate(Date updatedDate) {
        this.updatedDate = updatedDate;
    }

    public String getUpdatedName() {
        return updatedName;
    }

    public void setUpdatedName(String updatedName) {
        this.updatedName = updatedName;
    }

    public Byte getAdvSourceType() {
        return advSourceType;
    }

    public void setAdvSourceType(Byte advSourceType) {
        this.advSourceType = advSourceType;
    }
    
    public Byte getApplicationType()
	{
		return applicationType;
	}

	public void setApplicationType(Byte applicationType)
	{
		this.applicationType = applicationType;
	}

	@Override
    public String toString() {
        return "GoodsAdvertDO [id=" + id + ", advTitle=" + advTitle + ", advType=" + advType
               + ", advPicPath=" + advPicPath + ", advSource=" + advSource + ", startDate="
               + startDate + ", endDate=" + endDate + ", advStatus=" + advStatus + ", advOrder="
               + advOrder + ", createdDate=" + createdDate + ", createdName=" + createdName
               + ", updatedDate=" + updatedDate + ", updatedName=" + updatedName + "]";
    }

}
